﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="OptimumInfra.Models" %>
<%@ Import Namespace="OptimumInfra.ViewData" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div style="padding: 10px; margin: 10px;">
  <table width="700px" style="padding: 10px;">
  <tr>
     <th>--</th>  
     <th>Id</th>
     <th>Date Created</th>
     <th>Status</th>
     <th></th>
    
  </tr>
    <%
    
        foreach (var order in (ViewData["orders"] as IEnumerable<ViewDataOrder>))
        {
            %>           
               <tr>
                <td width="30px"><input type="checkbox" name="ids" id="ids<%=order.Id %>" value="<%=order.Id %>" onclick="isChecked(this.checked);" /></td>
                <td width="30px"><%=order.Id%></td>
                <td>
                    <%=order.DateAdd %>
                 </td
                  <td>
                    <%=order.Status %>
                 </td
                <td>
                 <a href="/Order/Details/<%=order.Id%>">View Detail</a>
                 </td>
               </tr> 
            <%
        }
            
         %>
     </table>
   </div> 
</asp:Content>
